/**
 * jims
 */
package com.jims.master.modules.sync.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.sync.dao.OrderMainDao;
import com.jims.master.modules.sync.entity.OrderMain;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 医嘱主表Service
 * @author ct
 * @version 2017-11-20
 */
@Service
@Transactional(readOnly = true)
public class OrderMainService extends CrudService<OrderMainDao, OrderMain> {

	@Override
    public OrderMain get(String id) {
		return super.get(id);
	}
	
	@Override
    public List<OrderMain> findList(OrderMain orderMain) {
		return super.findList(orderMain);
	}
	
	@Override
    public Page<OrderMain> findPage(Page<OrderMain> page, OrderMain orderMain) {
		return super.findPage(page, orderMain);
	}
	
	@Override
    @Transactional(readOnly = false)
	public int save(OrderMain orderMain) {
		return super.save(orderMain);
	}
	
	@Override
    @Transactional(readOnly = false)
	public int delete(OrderMain orderMain) {
		return super.delete(orderMain);
	}

	public  List<OrderMain> getByVisitId(String visitId){
		return dao.getByVisitId(visitId);
	}
	
}